<?php
	$loi = "";
	if(isset($_POST["ok"])){
		$t = "";
		if($_POST["tt"] == null){
			$loi[] = "Chua nhap trang thai";
		}else{
			$t = $_POST["tt"];
		}
		if($t){
			$tt = new mtrangthai();
			$tt->settt($t);
			$tt->add();
			header("location: index.php?module=trangthai&action=list");
			exit();
		}
	}
	require ("views/trangthai/vadd.php");
?>